package com.framework.myandroid.eventbus

import androidx.annotation.NonNull

class EventBusMessage {
    var code: Int = 0
    var message: String
    var time: Long = -1
    var type: Int = -1


    constructor(message: String?) {
        this.message = message!!
    }

    constructor(code: Int?, message: String?) {
        this.code = code!!
        this.message = message!!
    }

    constructor(code: Int?, message: String?, time: Long, type: Int) {
        this.code = code!!
        this.message = message!!
        this.time = time
        this.type = type
    }

    @NonNull
    override fun toString(): String {
        return "EventBusMessage{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}'
    }
}